package com.yfkj.dubbo.consumer;

import javax.annotation.Resource;

import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.test.context.ContextConfiguration;
import org.springframework.test.context.junit4.SpringJUnit4ClassRunner;

import com.yfkj.dubboApi.SayHelloService;

@RunWith(SpringJUnit4ClassRunner.class)
@ContextConfiguration(locations = { "classpath*:applicationContext.xml", "classpath*:applicationContext-*.xml" })
public class ConsumerTest {

	    @Resource
	    private SayHelloService sayHelloService;

	    @Test
	    public void test() throws Exception {
	        System.out.println(sayHelloService.name("allen"));
	    }

}
